
BOT_NAME = 'scrapy_01'

SPIDER_MODULES = ['scrapy_01.spiders']
NEWSPIDER_MODULE = 'scrapy_01.spiders'


# Crawl responsibly by identifying yourself (and your website) on the user-agent
# 是否启用代理
#USER_AGENT = 'scrapy_01 (+http://www.yourdomain.com)'

# Obey robots.txt rules
# 是否遵循网站的rules协议，一般写False或者直接注释
ROBOTSTXT_OBEY = False

# Configure maximum concurrent requests performed by Scrapy (default: 16)
# 请求的并发量，默认是16，一次性可以发出16个请求来处理这个响应
#CONCURRENT_REQUESTS = 32

# Configure a delay for requests for the same website (default: 0)
# See https://docs.scrapy.org/en/latest/topics/settings.html#download-delay
# See also autothrottle settings and docs
# 下载延迟，每下载一个等待三秒，默认不等待
#DOWNLOAD_DELAY = 3

# The download delay setting will honor only one of:
# 爬取网站的时候允许域的一个个数
#CONCURRENT_REQUESTS_PER_DOMAIN = 16
# 允许IP的个数
#CONCURRENT_REQUESTS_PER_IP = 16

# Disable cookies (enabled by default)
# 是否启用你的cookies，一般网站会用cookie来监测自己的行为，所以一般不启用
#COOKIES_ENABLED = False

# Disable Telnet Console (enabled by default)
# 是否启用爬虫监控
#TELNETCONSOLE_ENABLED = False

# Override the default request headers:
# 默认请求报头，也可以报user_agent写在这里
#DEFAULT_REQUEST_HEADERS = {
#   'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
#   'Accept-Language': 'en',
#}

# Enable or disable spider middlewares
# See https://docs.scrapy.org/en/latest/topics/spider-middleware.html
# 爬虫中间键，用来处理爬虫与引擎之间的关系 ，0~1000，越小级别越高
# 爬虫中间键以及下载中间键都是用来处理多个中间键使用的，可以确认先使用哪个中间键
#SPIDER_MIDDLEWARES = {
#    'scrapy_01.middlewares.Scrapy01SpiderMiddleware': 543,
#}

# Enable or disable downloader middlewares
# See https://docs.scrapy.org/en/latest/topics/downloader-middleware.html
# 下载中间键
#DOWNLOADER_MIDDLEWARES = {
#    'scrapy_01.middlewares.Scrapy01DownloaderMiddleware': 543,
#}

# Enable or disable extensions
# See https://docs.scrapy.org/en/latest/topics/extensions.html
# 配置监控
#EXTENSIONS = {
#    'scrapy.extensions.telnet.TelnetConsole': None,
#}

# Configure item pipelines
# See https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# 管道文件，可以写多个，分别处理不同的管道文件，也是1~1000，数字小的先启用
ITEM_PIPELINES = {
   # 'scrapy_01.pipelines.Scrapy01Pipeline': 300,
    'scrapy_01.pipelines.bilibili_dancePipeline':400,
}
IMAGES_STORE = "F:\\01data\\project\\scrapy\\scrapy01\\scrapy_01\\data"

# Enable and configure the AutoThrottle extension (disabled by default)
# See https://docs.scrapy.org/en/latest/topics/autothrottle.html
#AUTOTHROTTLE_ENABLED = True
# The initial download delay
#AUTOTHROTTLE_START_DELAY = 5
# The maximum download delay to be set in case of high latencies
#AUTOTHROTTLE_MAX_DELAY = 60
# The average number of requests Scrapy should be sending in parallel to
# each remote server
#AUTOTHROTTLE_TARGET_CONCURRENCY = 1.0
# Enable showing throttling stats for every response received:
#AUTOTHROTTLE_DEBUG = False

# Enable and configure HTTP caching (disabled by default)
# See https://docs.scrapy.org/en/latest/topics/downloader-middleware.html#httpcache-middleware-settings
#HTTPCACHE_ENABLED = True
#HTTPCACHE_EXPIRATION_SECS = 0
#HTTPCACHE_DIR = 'httpcache'
#HTTPCACHE_IGNORE_HTTP_CODES = []
#HTTPCACHE_STORAGE = 'scrapy.extensions.httpcache.FilesystemCacheStorage'

